package com.netease.pris.activity;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.netease.image.d;
import java.util.ArrayList;
import java.util.List;

class cp extends BaseAdapter
{
  List a = new ArrayList();
  Context b;

  public cp(PRISActivityWBSetting paramPRISActivityWBSetting, Context paramContext)
  {
    this.b = paramContext;
  }

  public void a(List paramList)
  {
    this.a.clear();
    this.a.addAll(paramList);
  }

  public int getCount()
  {
    return 7;
  }

  public Object getItem(int paramInt)
  {
    return this.a.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    if (paramView == null)
    {
      paramView = LayoutInflater.from(this.b).inflate(2130903120, null);
      bn localbn2 = new bn();
      localbn2.d = ((TextView)paramView.findViewById(2131558709));
      localbn2.a = ((ImageView)paramView.findViewById(2131558704));
      localbn2.b = ((TextView)paramView.findViewById(2131558706));
      localbn2.c = ((TextView)paramView.findViewById(2131558707));
      localbn2.e = ((ImageView)paramView.findViewById(2131558710));
      localbn2.f = ((TextView)paramView.findViewById(2131558708));
      localbn2.g = paramView.findViewById(2131558705);
      paramView.setTag(localbn2);
    }
    bn localbn1 = (bn)paramView.getTag();
    co localco = (co)getItem(paramInt);
    localbn1.d.setOnClickListener(new ba(this, localco));
    int i = -1;
    int j = -1;
    switch (localco.c)
    {
    default:
      localbn1.b.setText(i);
      localbn1.a.setImageResource(j);
      if (!localco.d)
        break;
      localbn1.d.setText(2131362084);
      localbn1.d.setVisibility(0);
      localbn1.e.setVisibility(8);
      StringBuilder localStringBuilder = new StringBuilder();
      localbn1.a.setTag(localStringBuilder);
      d.a().a(localStringBuilder, 1, localco.f, new bb(this, localbn1), -1, -1, 2, PRISActivityWBSetting.c(this.c));
      localbn1.g.setVisibility(0);
      localbn1.b.setText(localco.a);
      localbn1.c.setText(localco.e);
      localbn1.f.setVisibility(8);
    case 1:
    case 3:
    case 2:
    case 6:
    case 5:
    case 4:
    case 7:
    }
    while (true)
    {
      return paramView;
      i = 2131362077;
      j = 2130837704;
      break;
      i = 2131362078;
      j = 2130837710;
      break;
      i = 2131362079;
      j = 2130837709;
      break;
      i = 2131362080;
      j = 2130837853;
      break;
      i = 2131362081;
      j = 2130837854;
      break;
      i = 2131362082;
      j = 2130837855;
      break;
      i = 2131362083;
      j = 2130837720;
      break;
      localbn1.e.setVisibility(0);
      localbn1.d.setVisibility(8);
      localbn1.g.setVisibility(8);
      localbn1.f.setVisibility(0);
      localbn1.f.setText(localco.a);
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.cp
 * JD-Core Version:    0.6.0
 */